<template>
  <view>
    <view class="cu-item solid-bottom padding-sm" @tap.stop="redirectVerifyOrder">
  <!--    <view class="cu-avatar radius lg" style="background-image:url(https://ossweb-img.qq.com/images/lol/web201310/skin/big81020.jpg);">-->
  <!--      <view class="cu-tag badge"></view>-->
  <!--    </view>-->
      <view class="content flex">
        <view class="basis-xl">
          <view class="text-cut">{{verifyOrder.adminName||'啊啊啊啊'}}</view>
          <view class="text-cut text-gray text-lg"> {{verifyOrder.adminLevel}} >> <text class="text-orange margin-right-xs"></text> {{verifyOrder.poiName}}</view>
          <view class="text-cut text-gray text-sm flex">
            <view class="text-gray flex-sub">总金额 ￥{{verifyOrder.totalPrice||0}}</view>
            <view class="text-gray flex-sub">核销金额 ￥{{verifyOrder.totalVerifPrice||0}}</view>
          </view>
        </view>
        <view class="basis-xs text-center">
          <view class="cu-tag round margin-bottom-xs text-custom-bg">审核状态： {{verifyOrder.examineVerifyName||'待审核'}}</view>
          <view class="cu-tag round text-custom-bg">提现状态： {{verifyOrder.tixianFlagName||'待审核'}}</view>
        </view>
<!--        <view>-->
<!--          <view class="text-cut">{{verifyOrder.adminName}}</view>-->
<!--          <view class="cu-tag round bg-orange sm">审核状态： {{verifyOrder.examineVerifyName}}</view>-->
<!--          <view class="cu-tag round bg-orange sm">提现状态： {{verifyOrder.tixianFlagName}}</view>-->
<!--        </view>-->
<!--        <view class="text-gray text-sm flex">-->
<!--          <view class="text-cut"> {{verifyOrder.adminLevel}} >> <text class="text-orange margin-right-xs"></text> {{verifyOrder.poiName}}</view>-->
<!--        </view>-->
<!--      </view>-->
<!--      <view class="action flex">-->
<!--        <view class="text-gray flex-sub">总金额 ￥{{verifyOrder.totalPrice}}</view>-->
<!--        <view class="text-white bg-orange radius sm cu-tag margin-top-sm">核销金额 ￥{{verifyOrder.totalVerifPrice}}</view>-->
<!--      </view>-->
        </view>
      </view>
    </view>
</template>

<script setup lang="ts">

import {onReachBottom, onLoad} from "@dcloudio/uni-app";
import {ref, onMounted, reactive, toRaw, computed} from "vue";

import {useStore} from "@/common/store";
const store = useStore();

const userId = computed(() => store.userId)

interface Prop {
  verifyOrder :{
    id: number
    adminId: number
    adminName: string
    adminLevel: number
    adminLevelName: string
    orderCount: number
    ownerOrderCount: number
    totalPrice: number
    ownerOrderPrice: number
    totalVerifPrice: number
    totalOwnerVerifPrice: number
    wechatPer: number
    wechatPrice: number
    examineVerify: number
    examineVerifyName: string
    examineVerifyRemark: string
    examineVerifyTime: Date
    tixianFlag: number
    tixianFlagName: string
    tixianRemark: string
    tixianTime: Date
    verifyTime: Date
    statusFlag: number
    delFlag: number
    createUser: string
    createTime: Date
    updateTime: Date
    remark: string
  }
}

// 传递过来的参数
const props = defineProps<Prop>();

const redirectVerifyOrder = ()=> {
  uni.navigateTo({
    url: `/pages/order/VerifyOrderDetail?id=${props.verifyOrder.id}`
  })
}

</script>

<style lang="scss" scoped>

</style>
